package com.jinsilu.freight.http.request;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestHost;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;
import com.jinsilu.freight.other.MTLConstants;

/**
 * 上传装车磅单
 *
 * @author yangyang
 * @time 2020-11-20 12:47
 */
public class UploadLoadPoundsApi implements IRequestApi, IRequestType {

    private String waybillNumber;
    private String weight;
    private String imageUrl;
    private String oilAccount;
    private String bankId;
    private String uploadAddress;
    private String longitude;
    private String latitude;
    private Integer applyWhite;

    @Override
    public String getApi() {
        return "api/waybill/setUpload";
    }

    @Override
    public BodyType getType() {
        return BodyType.FORM;
    }

    public UploadLoadPoundsApi setWaybillNumber(String waybillNumber) {
        this.waybillNumber = waybillNumber;
        return this;
    }

    public UploadLoadPoundsApi setWeight(String weight) {
        this.weight = weight;
        return this;
    }

    public UploadLoadPoundsApi setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
        return this;
    }

    public UploadLoadPoundsApi setOilAccount(String oilAccount) {
        this.oilAccount = oilAccount;
        return this;
    }

    public UploadLoadPoundsApi setBankId(String bankId) {
        this.bankId = bankId;
        return this;
    }

    public UploadLoadPoundsApi setLongitude(String longitude) {
        this.longitude = longitude;
        return this;
    }

    public UploadLoadPoundsApi setLatitude(String latitude) {
        this.latitude = latitude;
        return this;
    }

    public UploadLoadPoundsApi setUploadAddress(String uploadAddress) {
        this.uploadAddress = uploadAddress;
        return this;
    }

    public UploadLoadPoundsApi setApplyWhite(Integer applyWhite) {
        this.applyWhite = applyWhite;
        return this;
    }
}
